﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeBehind="HistoryView.aspx.cs" Inherits="StockCrawler.HistoryView" %>
<%@ Register assembly="DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Data.Linq" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" DataSourceID="LinqServerModeDataSourceHistory">
        <Columns>
            <dx:GridViewDataTextColumn FieldName="id_stock" VisibleIndex="0">
            </dx:GridViewDataTextColumn>
            <%--<dx:GridViewDataColumn Caption="Mã CK" VisibleIndex="0">
                <DataItemTemplate>
                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text='<%#Eval("ngay_giao_dich")%>'></dx:ASPxLabel>
                </DataItemTemplate>
            </dx:GridViewDataColumn>--%>
            <dx:GridViewDataDateColumn FieldName="ngay_giao_dich" VisibleIndex="1" Caption="Ngày giao dịch">
            </dx:GridViewDataDateColumn>
            <dx:GridViewDataTextColumn FieldName="gia_dong_cua" VisibleIndex="2" Caption="Giá đóng cửa">
                <PropertiesTextEdit DisplayFormatString="#,###.0"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="thay_doi" VisibleIndex="3" Caption="Thay đổi (+/-%)">
                <PropertiesTextEdit DisplayFormatString="#0.0"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="gia_tham_chieu" VisibleIndex="4" Caption="Giá tham chiếu">
                <PropertiesTextEdit DisplayFormatString="#,###.0"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="gia_mo_cua" VisibleIndex="5" Caption="Giá mở cửa">
                <PropertiesTextEdit DisplayFormatString="#,###.0"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="gia_cao_nhat" VisibleIndex="6" Caption="Giá cao nhất">
                <PropertiesTextEdit DisplayFormatString="#,###.0"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="gia_thap_nhat" VisibleIndex="7" Caption="Giá thấp nhất">
                <PropertiesTextEdit DisplayFormatString="#,###.0"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="klgd_khop_lenh" VisibleIndex="8" Caption="KL">
                <PropertiesTextEdit DisplayFormatString="#,###"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="gtgd_khop_lenh" VisibleIndex="9" Caption="GT">
                <PropertiesTextEdit DisplayFormatString="#,###"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="klgd_thoa_thuan" VisibleIndex="10" Caption="KL">
                <PropertiesTextEdit DisplayFormatString="#,###"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="gtgd_thoa_thuan" VisibleIndex="11" Caption="GT">
                <PropertiesTextEdit DisplayFormatString="#,###"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="du_mua" VisibleIndex="12" Caption="Dư mua">
                <PropertiesTextEdit DisplayFormatString="#,###"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="du_ban" VisibleIndex="13" Caption="Dư bán">
                <PropertiesTextEdit DisplayFormatString="#,###"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="so_lenh_mua" VisibleIndex="14" Caption="Số lệnh mua">
                <PropertiesTextEdit DisplayFormatString="#,###"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="kl_dat_mua" VisibleIndex="15" Caption="Khối lượng đặt mua">
                <PropertiesTextEdit DisplayFormatString="#,###"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="so_lenh_ban" VisibleIndex="16" Caption="Số lệnh bán">
                <PropertiesTextEdit DisplayFormatString="#,###"/>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="kl_dat_ban" VisibleIndex="17" Caption="Khối lượng đặt bán">
                <PropertiesTextEdit DisplayFormatString="#,###"/>
            </dx:GridViewDataTextColumn>
            
        </Columns>
        <SettingsBehavior AllowSelectByRowClick="true" />
        <Settings ShowFilterRow="True" ShowFilterRowMenu="true" ShowGroupPanel="True" ShowFooter="True" />
            <SettingsPager>
                <PageSizeItemSettings Visible="true" Items="10, 20, 50" />
            </SettingsPager>

    </dx:ASPxGridView>
    <dx:LinqServerModeDataSource ID="LinqServerModeDataSourceHistory" runat="server" ContextTypeName="StockCrawlerLib.StockDataClassesDataContext" TableName="histories">
    </dx:LinqServerModeDataSource>
</asp:Content>
